package com.qf.efserver.sport.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "运动参数")
public class SportParam {
    @ApiModelProperty(value = "用户id",example = "1",hidden = true)
    private Integer userId;
    @ApiModelProperty(value = "活动类型1、瑜伽 2、快走3、跑步4、骑行",example = "1")
    private String activityType;
    @ApiModelProperty(value = "运动时长,单位分钟",example = "30")
    private Integer duration;
    @ApiModelProperty(value = "消耗卡路里",example = "30")
    private Integer caloriesBurned;
    @ApiModelProperty(value = "运动距离，单位米",example = "30")
    private Double distance;
    @ApiModelProperty(value = "运动步数")
    private Integer steps;
    @ApiModelProperty(value = "运动开始时间",example = "2021-07-01 12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "运动结束时间",example = "2021-07-01 13:00:00")
    private Date endTime;
}
